﻿using Microsoft.Extensions.Localization;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Features;
using Volo.Abp.Localization;
using XDQ.VAT.Localization;

namespace XDQ.VAT.Settings
{
    public class VATFeatureDefinitionProvider : FeatureDefinitionProvider
    {
        public VATFeatureDefinitionProvider(IStringLocalizer<VATResource> stringLocalizer)
        {
            StringLocalizer = stringLocalizer;
        }

        public IStringLocalizer StringLocalizer { get; }

        public override void Define(IFeatureDefinitionContext context)
        {
            var myGroup = context.AddGroup(VATFeatures.GroupName, new LocalizableString(typeof(VATResource), VATFeatures.GroupName));
            myGroup.AddFeature(VATFeatures.Exam.Default, false.ToString()
                , new LocalizableString(typeof(VATResource), VATFeatures.Exam.Default)
                , new LocalizableString(typeof(VATResource), VATFeatures.Exam.DefaultDescription));

        }
    }
}
